<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="webTest.Person" %>
<%--
  Created by IntelliJ IDEA.
  User: IFT8
  Date: 2015/3/15
  Time: 9:21
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title></title>
</head>
<body>
<h3>域</h3>
<c:set var="pageStr" value="pageStr……" scope="page"></c:set>
pageStr=${pageScope.pageStr}
<h3>Map</h3>
<%
    Map<String, String> map = new HashMap<String, String>();
    map.put("Name", "Li");
    map.put("age", "18");
    map.put("gender", "Man");
    pageContext.setAttribute("map", map);
%>
<c:set property="age" value="20" target="${pageScope.map}"></c:set>
${map}
<h3>JavaBean</h3>
<%
    Person person=new Person();
    person.setName("Du");
    pageContext.setAttribute("person",person);
%>
${person.name}
${person.age}<br>
<c:set target="${person}" property="name" value="DD"></c:set>
<c:set target="${person}" property="age" value="22"></c:set>
${person.name}
${person.age}
</body>
</html>
